@import "@styles/theme.scss";

$height: 270px;
$avatarSize: 160px;

.user {
  position: relative;
  background: #f4f4f4;
}

.user__wrap {

}

.user-header {
  position: relative;
  height: $height;
  overflow: hidden;

  &-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: $height;
  }
}

.user-info {
  position: relative;
  display: flex;
  flex-direction: row;
  height: 100%;
  padding-left: $spacing-h-lg;
  padding-top: 50px;

  &-avatar {
    width: $avatarSize;
    height: $avatarSize;
    border-radius: 50%;
    overflow: hidden;
  }

  &-r {
    margin-left: $spacing-h-md;
    color: $text-color;
    display: flex;
    flex-direction: column;
  }

  &-name {
    font-size: $font-size-lg;
    font-weight: bold;
    padding-top: $spacing-h-md;
  }

  &-tel {
    font-size: $font-size-base;
    padding-top: $spacing-h-md;
  }
}

.order-center {
  margin: $spacing-h-md;
  padding-left: $spacing-h-lg;
  background: #ffffff;
  border-radius: 20px;
}

.order-center__header {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: $spacing-h-lg $spacing-h-lg $spacing-h-lg 0;
  border-bottom: 1px solid $border-color;

  &-title {
    font-size: 30px;
    color: $text-color;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
  }

  &-info {
    display: flex;
    flex-direction: row;
    font-size: 24px;
    color: $text-color-lighter;
    align-items: center;
  }
}

.order-center__grid {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  padding: 35px 15px 35px 0;
}

.order-center__item {
  align-items: center;
  font-size: 25px;
  display: flex;
  flex-direction: column;

  &-txt {
    margin-top: 16px;
    color: $text-color;
    font-size: 24px;
    line-height: 24px;
  }
}

.user-menu {
  margin: $spacing-h-md;
  padding-left: $spacing-h-lg;
  background: #ffffff;
  border-radius: 20px;
}

.user-menu__btn {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: $spacing-h-lg $spacing-h-lg $spacing-h-lg 0;
  background: #ffffff;
  outline: none;
}

.user-menu__btn::after {
  border: none;
}

.user-menu__item {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: $spacing-h-lg $spacing-h-lg $spacing-h-lg 0;
  border-bottom: 1px solid $border-color;

  &-left {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
  }

  &-txt {
    padding-left: 20px;
    color: $text-color;
    font-size: 26px;
    line-height: 30px;
  }
}

.user__recommend {
  display: flex;
  flex-direction: row;
  justify-content: center;

  &-txt {
    color: $text-color;
    font-size: $font-size-base;
    line-height: 1.5;
  }
}
